@include("user.head")
<div class="row relative_pos ad_row" style="height:400px;">
	<div class="ad_box abs_pos col-xs-12 full_height">
	</div>
	<div class="ad_pager abs_pos" adTotal="" adSpeed="1000" delay="4000" adIndex="0" adDir="top">
		<ul>

		</ul>
	</div>
</div>
<div class="row week">
	<div class="wrapper">
		<div class="row">
			<div class="col-xs-12 hp-number">
				<div class="col-xs-2 hp-number-bj hp-weekend">
					本 周
				</div>
				<div class="col-xs-2 hp-number-bj">
					<div>
						<span class="fl">低碳项目</span>
						<div class="hp-number2"><%$projects_increase%></div>
						<i class="fa fa-arrow-up hp-number2 number-color"></i>
					</div>
					<div class="hp-number1"><%$projects_num%></div>
				</div>
				<div class="col-xs-2 hp-number-bj">
					<div><span class="fl">投资人</span><div class="hp-number2"><%$invest_increase%></div><i class="fa fa-arrow-up hp-number2 number-color"></i></div>
					<div class="hp-number1"><%$invest%></div>
				</div>
				<div class="col-xs-2 hp-number-bj">
					<div><span class="fl">成功约谈</span><div class="hp-number2"><%$taught_increase%></div><i class="fa fa-arrow-up hp-number2 number-color"></i></div>
					<div class="hp-number1"><%$taught%></div>
				</div>
				<div class="col-xs-2 hp-number-bj">
					<div><span class="fl">成功项目</span><div class="hp-number2"><%$success_increase%></div><i class="fa fa-arrow-up hp-number2 number-color"></i></div>
					<div class="hp-number1"><%$success%></div>
				</div>
				<div class="col-xs-2 hp-number-bj" style="border-right:none">
					<div><span class="fl">设备总数</span><div class="hp-number2"><%$devices_increase%></div><i class="fa fa-arrow-up hp-number2 number-color"></i></div>
					<div class="hp-number1"><%$devices%></div>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="wrapper">
	<div class="row text-center guide">
		<a href="<%url('static?k=project')%>">
			<div class="col-xs-2">
				<div class="col-xs-12 guide_title">项目</div>
				<div class="col-xs-12 guide_icon">
					<img src="<%url('user/img/xm.jpg')%>" height="60" width="60" alt="" />
				</div>
				<div class="col-xs-12 guide_content">
					让项目广为人知
				</div>
				<!--<div class="col-xs-12 guide_btn no_padding_both">
					<a>立即发布</a>
				</div>-->
			</div>
		</a>
		<a href="<%url('static?k=group')%>">
			<div class="col-xs-2">
				<div class="col-xs-12 guide_title">
					机构
				</div>
				<div class="col-xs-12 guide_icon">
					<img src="<%url('user/img/jg.jpg')%>" height="60" width="60" alt="" />
				</div>
				<div class="col-xs-12 guide_content">
					让大家都知道您
				</div>
				<!--<div class="col-xs-12 guide_btn no_padding_both">
					<a>立即加入</a>
				</div>-->
			</div>
		</a>
		<a href="<%url('static?k=tech')%>">
			<div class="col-xs-2">
				<div class="col-xs-12 guide_title">技术</div>
				<div class="col-xs-12 guide_icon">
					<img src="<%url('user/img/tech.jpg')%>" height="60" width="60" alt="" />
				</div>
				<div class="col-xs-12 guide_content">
					展示您领先的技术
				</div>
				<!--<div class="col-xs-12 guide_btn no_padding_both">
					<a>立即发布</a>
				</div>-->
			</div>
		</a>
		<a href="<%url('static?k=device')%>">
			<div class="col-xs-2">
				<div class="col-xs-12 guide_title">设备</div>
				<div class="col-xs-12 guide_icon">
					<img src="<%url('user/img/product.jpg')%>" height="60" width="60" alt="" />
				</div>
				<div class="col-xs-12 guide_content">
					展示您先进的设备
				</div>
				<!--<div class="col-xs-12 guide_btn no_padding_both">
					<a>立即发布</a>
				</div>-->
			</div>
		</a>
		<a href="<%url('static?k=finance')%>">
			<div class="col-xs-2">
				<div class="col-xs-12 guide_title">金融</div>
				<div class="col-xs-12 guide_icon">
					<img src="<%url('user/img/finace.jpg')%>" height="60" width="60" alt="" />
				</div>
				<div class="col-xs-12 guide_content">
					资本加速发展
				</div>
				<!--<div class="col-xs-12 guide_btn no_padding_both">
					<a>我要融资</a>
				</div>-->
			</div>
		</a>
	</div>

	<div class="row text-center hp-xhx hp-ny">
		<div class="col-xs-12">
			<div class="row"><h1>能源是极限低碳是关键</h1></div>
			<div class="row"><h4>少用一个塑料袋，多享受一点好时光；少一团温室气体，多一片蓝色天空。低碳生活，你我共营。</h4></div>
			<div class="row text-left">
				@if ($imgProject)
				<div class="col-xs-4 hp-br" style="border-left:none">
					<div class="row hp-ny-first no_margin">
						<div class="col-xs-12">
							<span>推荐项目</span>
						</div>
					</div>
					<div class="row hp-ny-first1 no_margin">
						<div class="col-xs-12">
							<span><% $imgProject["name"]%></span>
						</div>
					</div>
					<div class="row hp-ny-first2 no_margin">
						<img src="<%url('user/img/lsj.png')%>" height="17" width="13" alt="" />
					</div>
					<div class="row no_margin"><img src="<%url('images')%>/<%$imgProject["uid"]%>/project/<%$imgProject["image"]%>" height="270" width="300" alt="" /></div>
					<div class="row hp-bianju">
						<div class="col-xs-12">
							<div class="col-xs-7 no_padding recommand_title"><%$imgProject["name"]%></div>
							<div class="col-xs-5">
								<div class="button-look fr">
									<a href="<%url('industry/project/detail?pid=')%><%$imgProject['id']%>">立即查看</a>
								</div>
							</div>
						</div>
					</div>
				</div>
				@endif
				<?php $i = 0; ?>
				@foreach ($project as $value )
					@if ($i % 2 == 0)
						@if (isset($project[$i]))
						<div class="col-xs-4 hp-br">
							<div class="row hp-bj1">
								<div class="col-xs-12">
									<div class="row">
										<div class="col-xs-12"><h3><% truncateText($project[$i]['name'], 11) %></h3></div>
									</div>
									<div class="row">
										<div class="col-xs-12" style="height:50px;">
											<p>
												<%mb_substr($project[$i]['description'], 0, 30, "utf-8")%>
											</p>
										</div>
									</div>
									<div class="row">
										<div class="col-xs-7">
											<p>
												计划启动时间：<br><% format($project[$i]['start_time'], "Y-m-d") %><br>
												计划完成时间：<br><% format($project[$i]['end_time'], "Y-m-d") %>
											</p>
											<div class="row">
												<div class="col-xs-12">
													<div class="button-look">
														<a href="<%url('industry/project/detail?pid=')%><%$project[$i]['id']%>">立即查看</a>
													</div>
												</div>
											</div>
										</div>
										<div class="col-xs-5"><img class="fr" src="<%url('images')%>/<%$project[$i]['uid']%>/project/<%$project[$i]['image']%>" height="112" width="115" alt="" /></div>
									</div>
									<div class="row"></div>
								</div>
							</div>
							@endif
							@if (isset($project[$i+1]))
							<div class="row hp-bj1">
								<div class="col-xs-12">
									<div class="row">
										<div class="col-xs-12"><h3><%truncateText($project[$i+1]['name'], 11)%></h3></div>
									</div>
									<div class="row">
										<div class="col-xs-12" style="height:50px;">
											<p>
											<%mb_substr($project[$i+1]['description'], 0, 30, "utf-8")%>
											</p>
										</div>
									</div>
									<div class="row">
										<div class="col-xs-7">
											<p>
												计划启动时间：<br><% format($project[$i+1]['start_time'], "Y-m-d") %><br>
												计划完成时间：<br><% format($project[$i+1]['end_time'], "Y-m-d") %>
											</p>
											<div class="row bianju">
												<div class="col-xs-12">
													<div class="button-look">
														<a href="<%url('industry/project/detail?pid=')%><%$project[$i+1]['id']%>">立即查看</a>
													</div>
												</div>
											</div>
										</div>
										<div class="col-xs-5"><img class="fr" src="<%url('images')%>/<%$project[$i+1]['uid']%>/project/<%$project[$i+1]['image']%>" height="112" width="115" alt="" /></div>
									</div>
								</div>
							</div>
							@endif
					</div>
					@endif
				<?php $i++; ?>
				@endforeach
			</div>
		</div>
	</div>
	<div class="row text-center hp-xhx">
		<div class="col-xs-12">
			<div class="row"><h1>理财推荐</h1></div>
			<div class="row moneySize"><h4>更专业的角度更轻松的方式让你获得最大角度的利益。</h4></div>
<!-- 			<div class="row text-center hp-mag-top">
				@foreach ($financeProject as $value)
					<div class="col-xs-4 hp-dp">
						<div class="row text-left">
							<div class="col-xs-12"><img src="<%url('images')%>/<%$value['uid']%>/project/<%$value['image']%>" height="230" width="294" alt="" /></div>
						</div>
						<div class="row text-left">
							<div class="col-xs-12"><h4><%$value['name']%></h4></div>
						</div>
						<div class="row text-left">
							<div class="col-xs-12 hp-ny">
								<%$value['description']%>
							</div>
						</div>
						<div class="row text-right">
							<div class="fr">
								<div class="col-xs-12 hp-dp">
									<div class="button-look look_margin">
										<a href="<%url('industry/project/detail?pid=')%><%$value['id']%>">立即查看</a>
									</div>
								</div>
							</div>
						</div>
					</div>
				@endforeach
			</div> -->
			<div class=" col-xs-8 no_padding_left" style="display:inline">
			    <table class="col-xs-12 moneyBd"cellspacing="10" >
			    	<div  class="col-xs-12 moneyTab" >理财计划</div>
					<tr class="money-tr" >
					  <th rowspan="2"class="col-xs-2 moneyBd "><span class="moneyNum">3</span>个月</th>
					  <td class="col-xs-2  moneyBd no_border_right">约定年化收益率<span class="Amount">4.51%</span</td>
					  <td class="col-xs-2 moneyBd_no">总成交金额66.54亿元</td>
					  <td class="col-xs-2 moneyBd  no_border_left"><div class="money_btn  check  check-left text-center" type="btn_primary">立即查看</div></td>
					</tr>
					<tr class="money-tr">
					  <td class="col-xs-2 moneyBd no_border_right"><span class="Amount">4.50%~4.51%</span></td>
					  <td class="col-xs-2 moneyBd_no">66.54亿元</td>
					  <td class="col-xs-2 moneyBd no_border_left"><div class="money_btn check check-left text-center" type="btn_primary">购买</div></td>
					</tr>
					<tr class="money-tr">
					  <th rowspan="2"class="col-xs-2 moneyBd "><span class="moneyNum">3-6</span>个月</th>
					  <td class="col-xs-2  moneyBd no_border_right">约定年化收益率<span class="Amount">4.51%</span</td>
					  <td class="col-xs-2 moneyBd_no">总成交金额66.54亿元</td>
					  <td class="col-xs-2 moneyBd  no_border_left"><div class="money_btn check check-left text-center" type="btn_primary">立即查看</div></td>
					</tr>
					<tr class="money-tr">
					  <td class="col-xs-2 moneyBd no_border_right"><span class="Amount">4.50%~4.51%</span></td>
					  <td class="col-xs-2 moneyBd_no">66.54亿元</td>
					  <td class="col-xs-2 moneyBd no_border_left"><div class="money_btn check check-left text-center" type="btn_primary">购买</div></td>
					</tr>
					<tr class="money-tr">
					  <th rowspan="2" class="col-xs-2 moneyBd"><span class="moneyNum"> 6-12</span>个月</th>
					  <td class="col-xs-2 moneyBd no_border_right">约定年化收益率<span class="Amount">4.51%</span></td>
					  <td class="col-xs-2 moneyBd_no">总成交金额66.54亿元</td>
					  <td class="col-xs-2 moneyBd no_border_left"><div class="money_btn check check-left text-center" type="btn_primary">立即查看</div></td>
					</tr>
					<tr class="money-tr">
					  <td class="col-xs-2 moneyBd no_border_right"><span class="Amount">4.50%~4.51%</span></td>
					  <td class="col-xs-2 moneyBd_no">66.54亿元</td>
					  <td class="col-xs-2 moneyBd no_border_left"><div class="money_btn check check-left text-center" type="btn_primary">购买</div></td>
					</tr>
					<tr class="money-tr">
					  <th rowspan="2"class="col-xs-2 moneyBd"><span class="moneyNum">12-24</span>个月</th>
					  <td class="col-xs-2 moneyBd no_border_right">约定年化收益率<span class="Amount">4.51%</span>起</td>
					  <td class="col-xs-2 moneyBd_no">总成交金额66.54亿元</td>
					  <td class="col-xs-2 moneyBd no_border_left"><div class="money_btn check check-left text-center" type="btn_primary">立即查看</div></td>
					</tr>
					<tr class="money-tr">
					  <td class="col-xs-2 no_border_right moneyBd"><span class="Amount">4.50%~4.51%</span>
					  <td class="col-xs-2">66.54亿元</td>
					  <td class="col-xs-2"><div class="money_btn check check-left text-center" type="btn_primary">购买</div></td>
					</tr>
				</table>
			</div>

			<div class=" col-xs-4">
			    <div class="col-xs-12 moneyTab">理财产品</div>
			    <div class="col-xs-12 liMoney" style="border-bottom:0px">
			    	<img class="moneyPic" src="<%url('user/img/logo.jpg')%>" alt="" >
			    	<div class="col-xs-12 text-left moneyBtn">平安信托：致富系列</div>
			    	<div class="col-xs-12 text-left moneyBtn">9.0%~10.2%预期化收益率</div>
			    	<div class="money_btn check check-right text-center fl" type="btn_primary" >立即查看</div>
					<div class="money_btn check  check-right text-center fr" type="btn_primary" >购买</div>
			    </div>
			    <div class="col-xs-12 liMoney">
			    	<img  class="moneyPic" src="<%url('user/img/logo.jpg')%>" alt="" >
			    	<div class="col-xs-12 text-left moneyBtn">平安信托：致富系列</div>
			    	<div class="col-xs-12 text-left moneyBtn">9.0%~10.2%预期化收益率</div>
			    	<div class="money_btn check check-right text-center fl" type="btn_primary" >立即查看</div>
					<div class="money_btn check check-right text-center fr" type="btn_primary" >购买</div>
			    </div>
			    <div  class="col-xs-12 text-center checkMore  "><a href="#" >查看更多</a></div>
			</div>
		</div>
	</div>
	</div>
	<div class="row text-center hp-xhx wrapper">
		<div class="col-xs-12">
			<div class="row"><h1>我们能源的未来</h1></div>
			<div class="row energySize"><h4>自然在身边，未知在心中。</h4></div>
			<div class="row relative_pos ad_row">
				<div class="row relative_pos ad_row no_margin">
					<div class="ad_box abs_pos col-xs-12 full_height">
					</div>
					<div class="ad_pager abs_pos" adTotal="" adSpeed="1000" delay="4000" adIndex="0" adDir="left">
						<ul>
						</ul>
					</div>
				</div>
			</div>
			<div class="row hp-xhx">
				<div class="col-xs-12">
					<!-- <div class="col-xs-3 hp-mar">
						<h3>平台服务入口</h3>
						<div class="row text-center">
							<div class="entry_margin btn btn-primary btn-lg">征信查询</div>
						</div>
						<div class="row text-center">
							<div class="entry_margin btn btn-primary btn-lg">评分查询</div>
						</div>
						<div class="row text-center">
							<div class="entry_margin btn btn-primary btn-lg">第三方服务</div>
						</div>
					</div> -->
					<div class="col-xs-8 hp-mar">
						<div class="row">
							<div class="col-xs-12">
								<div class="col-xs-5 text-left">
									<h3><%env('SITE_NAME')%>社区</h3>
								</div>
								<div class="col-xs-7 join_in text-right">
									@if (Session::has("user"))
									<a href="<%url('business')%>">马上加入>></a>
									@else
									<a href="<%url('login')%>">马上加入>></a>
									@endif
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-xs-12">
								<div class="col-xs-4">
									<img src="<%url('user/img/wsq.png')%>" height="180" width="180" alt="" />
								</div>
								<div class="col-xs-8">
									<ul class="business_entry text-left" id="hp_list"></ul>
								</div>
							</div>
						</div>
					</div>
					<div class="col-xs-4">
						<div class="row">
							<div class="col-xs-12 text-left">
								<h3>关注低碳</h3>
							</div>
						</div>
						<div class="row">
							<div class="col-xs-12">
								<div class="col-xs-4"><img src="<%url('user/img/ewm.png')%>" height="80" width="80" alt="" /></div>
								<div class="col-xs-8">
									<div class="row">
										<div class="col-xs-12 hp-num text-left">扫一扫，关注微信</div>
										<div class="col-xs-12 text-left follow_intro">这是一个能陪你聊低碳、聊金融、聊生活的微信服务号！</div>
									</div>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-xs-12">
								<div class="col-xs-4 bianju"><img src="<%url('user/img/ewm.png')%>" height="80" width="80" alt="" /></div>
								<div class="col-xs-8 bianju">
									<div class="row">
										<div class="col-xs-12 hp-num text-left">碳银QQ群</div>
										<div class="col-xs-12">
											<div class="text-left">群号：123456789</div>
											<div class="text-left follow_intro">加入我们，一起分享低碳、金融</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
@include('user.footer')
</body>
@include('user.common')
<script type="text/html" id="hp_listTemp">
{%each list as value}
<li>
	<a href="javascript:void(0)">
		<img src="<%url('user/img/dian.png')%>" alt="" />{%truncateText(value.content, 30)}
	</a>
</li>
{%/each}
</script>

<script type="text/html" id="circleTemp">
{%each list as value index}
	<li {%if index == 0}class="page_circle current"{%/if}{%if index != 0}class="page_circle"{%/if} ad-index="{%index}">
		{%index+1}
	</li>
{%/each}
</script>

<script type="text/html" id="bannerFirstTemp">
{%each list as value index}
	<a href="{%value.link}">
		<span class="ad abs_pos col-xs-12" style="left:0%;top:{%index*100}%;background:url(<%url('images/ad/{%value.image}')%>) center center;">
		</span>
	</a>
{%/each}
</script>

<script type="text/html" id="bannerTemp">
{%each list as value index}
	<a href="{%value.link}">
	    <span class="ad abs_pos col-xs-12 no_padding" style="left:{%index*100}%;top:0%;background:url(<%url('images/ad/{%value.image}')%>) center center;height:500px">
			<div class="banner_bg">
				<div class="banner_word">{%truncateText(value.title,10)}</div>
				<div class="banner_description">
					{%truncateText(value.description,100)}
				</div>
			</div>
			<div class="banner_button">
				了解更多
			</div>
		</span>
	</a>
{%/each}
</script>

<script type="text/javascript">
$.get("business/get_message", {page : 0, row : 7}, function (data){
	var html = template("hp_listTemp", {list: data.data});
	$("#hp_list").html(html);
});

$.get("admin/advertis/get_index_banner",function (data){
	if(data.success)
	{
		var html = template("bannerFirstTemp",{list: data.data});
		var adPager = $($(".ad_pager")[0]);
		var adTotal = data.data.length;
		adPager.attr("adTotal",adTotal);
		adPager.prev().html(html);
	}
	var circle = template("circleTemp",{list: data.data});
	adPager.find("ul").html(circle);
	startScroll();
})


$.get("admin/advertis/get_interactive_banner",function (data){
	console.log(data);
	if(data.success)
	{
		var html = template("bannerTemp",{list: data.data});
		var adPager = $($(".ad_pager")[1]);
		var adTotal = data.data.length;
		adPager.attr("adTotal",adTotal)
		adPager.prev().html(html);
	}
	var circle = template("circleTemp",{list: data.data});
	$($(".ad_pager")[1]).find("ul").html(circle);
	startScroll();
})


</script>

</html>